package cn.edu.scau.cmi.wuzhenzhou.client.spring;

import org.springframework.context.ApplicationContext;

import cn.edu.scau.cmi.wuzhenzhou.spring.domain.Student;
import cn.edu.scau.cmi.wuzhenzhou.spring.utils.ApplicationContextUtil;

public class SpringTest {
	
	public static void main(String[] args) {
		ApplicationContext ac = ApplicationContextUtil.getApplicationContext();
		Student student = ac.getBean("zhangsan",Student.class);
		System.out.println(student.getName()+"的毕业设计导师是：" + student.getTeacher().getName());
	}

}
